﻿using System;

namespace CrazyTalk.Models
{
	/// <summary>
	/// 1
	/// </summary>
	[Serializable]
	public partial class UserSession
	{
		public UserSession()
		{}
		#region Model
		/// <summary>
		/// 用戶會話ID
		/// </summary>
		public int RowID { get; set; }
		/// <summary>
		/// 用戶會話識別碼
		/// </summary>
		public string UserToken { get; set; }
		/// <summary>
		/// 用戶ID
		/// </summary>
		public string UserID { get; set; }
		/// <summary>
		/// 角色ID
		/// </summary>
		public int RoleID { get; set; }
		/// <summary>
		/// IP
		/// </summary>
		public string IP { get; set; }
		/// <summary>
		/// 操作類型（S：登錄成功，P：密碼錯誤，N：正常登出，F：重登錄強制登出，T：超時強制登出
		/// </summary>
		public string ActionType { get; set; }
		/// <summary>
		/// 活動時間
		/// </summary>
		public DateTime StampTime { get; set; }
		/// <summary>
		/// 源（M：管理端，C：客户端）
		/// </summary>
		public string Resource { get; set; }
		/// <summary>
		/// 最後活動時間
		/// </summary>
		public DateTime? LastActiveTime { get; set; }
		/// <summary>
		/// 昵稱
		/// </summary>
		public string NickName { get; set; }
		#endregion Model

	}
}

